home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_250 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  713 b   |  28 lines

  1. on(press){
  2.    if(_root.micon._currentframe == 44)
  3.    {
  4.       if(_root.even35 == 1)
  5.       {
  6.          _root.indicount = 100;
  7.          _root.indialogue = "And He\'s a... superfly, superfly!";
  8.          _root.micon.gotoAndStop(1);
  9.          _root.sfx.gotoAndStop(3);
  10.          i = 1;
  11.          while(i < 40)
  12.          {
  13.             if(_root.inven["box" + i]._currentframe == 29)
  14.             {
  15.                _root.inven["box" + i].gotoAndStop(26);
  16.             }
  17.             i++;
  18.          }
  19.          gotoAndStop(26);
  20.       }
  21.       else
  22.       {
  23.          _root.indicount = 100;
  24.          _root.indialogue = "I don\'t wanna use this on Tedward, I don\'t know what it will do to him.";
  25.       }
  26.    }
  27. }
  28.